{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">首页</a>
            </li>
            <li class="active">用户管理</li>
            <h1>
                用户管理
                <small>
                    <i class="icon-double-angle-right"></i>
                    分配权限
                </small>
            </h1>
        <div class="row">
            <div class="col-md-12">
                <p>
                    给 <b></b> 分配权限
                </p>

                <form action="{:url('admin/User/dorolelist')}" method='post'>
                    <p style="width:600px">
                        {volist name="list" id="v"}
                        <input type="checkbox" name="roles[]"  value="{$v.id}" {in name="$v['name']" value="$roles"}checked{/in}>{$v['name']}
                        {/volist}
                    </p>
                    <input type="hidden" name="uid" value="{$id}">
                    <input type="submit" value="保存" class="btn btn-primary">

                </form>

            </div>
        </div>

    </div>

</div>

{/block}